﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;

namespace Utility
{
    public class ClientComputer
    {
        public string UserName { get; set; }
        public TcpClient Client { get; set; }
        public byte[] Buffer;
        public ClientStatus Status;

        private const int BuffSize = 4096;

        public ClientComputer()
        {
            UserName = "";
            Buffer = new byte[BuffSize];
        }

        public NetworkStream Stream
        {
            get { return Client.GetStream(); }
        }

        public void ResetBuffer()
        {
            Buffer = new byte[BuffSize];
        }

        public EndPoint RemoteEndPoint
        {
            get
            {
                return Client.Client.RemoteEndPoint;
            }
        }
    }
}
